package com.xdb.sqlparser.dialect.oracle.ast.statement;

import com.xdb.sqlparser.dialect.oracle.ast.OracleSQLObjectImpl;
import com.xdb.sqlparser.dialect.oracle.visitor.OracleASTVisitor;

public abstract class OracleSelectRestriction extends OracleSQLObjectImpl {

	public OracleSelectRestriction() {

	}

	public static class CheckOption extends OracleSelectRestriction {

		private OracleConstraint constraint;

		public CheckOption() {

		}

		public OracleConstraint getConstraint() {
			return this.constraint;
		}

		public void setConstraint(OracleConstraint constraint) {
			this.constraint = constraint;
		}

		public void accept0(OracleASTVisitor visitor) {
			if (visitor.visit(this)) {
				acceptChild(visitor, this.constraint);
			}

			visitor.endVisit(this);
		}
	}

	public static class ReadOnly extends OracleSelectRestriction {

		public ReadOnly() {

		}

		public void accept0(OracleASTVisitor visitor) {
			visitor.visit(this);

			visitor.endVisit(this);
		}
	}
}
